package com.member.server.domain.dto;

import com.member.server.entity.AccountLog;
import com.member.server.entity.Member;
import com.member.server.entity.Record;

import java.util.List;

/**
 * @author gaojx1993
 * @version 1.0
 * @description AccountDTO
 * @since 2023/7/11 16:46
 */
public abstract class AccOpDTO {

    protected long gmtCreate = System.currentTimeMillis();

    protected Member member;

    protected String recordRemark;

    protected Record record;

    protected List<AccountLog> accountLogs;

    public abstract void init();

    public abstract void genRecord();

    public abstract void genAccountLogs();

    public AccOpDTO(Member member) {
       this(member, null);
    }

    public AccOpDTO(Member member, String recordRemark) {
        this.member = member;
        this.recordRemark = recordRemark;
    }

    public Record getRecord() {
        return record;
    }

    public List<AccountLog> getAccountLogs() {
        return accountLogs;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }
}
